package com.sgb.link.utils;

import java.util.List;

/**
 * Time:2021/11/29
 * AUTHOR:F_Q
 * Description:
 */
public class ListToStringUtils {

    public static String listToString1(List list) {
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < list.size(); i++) {
            sb.append(list.get(i)).append(",");
        }
        return list.isEmpty() ? "" : sb.toString().substring(0, sb.toString().length() - 1);
    }
}
